package printers;

public class Test {

	public static void main(String[] args) {
		Printer printer;

		// 针式打印机
		printer = new DotMatrixPrinter();
		printer.print();

		// 喷墨打印机
		printer = new InkjetPrinter();
		printer.print();

		// 激光打印机
		printer = new LaserPrinter();
		printer.print();

	}

}
